Optimal. Leaf size=178 \[ -\frac{3 \sqrt{5 x^2+2 x+3} (40-371 x)}{5588 \left (-7 x^2+4 x+1\right )}-\frac{\sqrt{\frac{3027900955+14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{\left (17-5 \sqrt{11}\right ) x-\sqrt{11}+23}{\sqrt{2 \left (125-17 \sqrt{11}\right )} \sqrt{5 x^2+2 x+3}}\right )}{11176}+\frac{\sqrt{\frac{3027900955-14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{\left (17+5 \sqrt{11}\right ) x+\sqrt{11}+23}{\sqrt{2 \left (125+17 \sqrt{11}\right )} \sqrt{5 x^2+2 x+3}}\right )}{11176} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.195938, antiderivative size = 178, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 4, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {1060, 1032, 724, 206} \[ -\frac{3 \sqrt{5 x^2+2 x+3} (40-371 x)}{5588 \left (-7 x^2+4 x+1\right )}-\frac{\sqrt{\frac{3027900955+14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{\left (17-5 \sqrt{11}\right ) x-\sqrt{11}+23}{\sqrt{2 \left (125-17 \sqrt{11}\right )} \sqrt{5 x^2+2 x+3}}\right )}{11176}+\frac{\sqrt{\frac{3027900955-14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{\left (17+5 \sqrt{11}\right ) x+\sqrt{11}+23}{\sqrt{2 \left (125+17 \sqrt{11}\right )} \sqrt{5 x^2+2 x+3}}\right )}{11176} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1060
Rule 1032
Rule 724
Rule 206
Rubi steps
\begin{align*} \int \frac{2+5 x+x^2}{\left (1+4 x-7 x^2\right )^2 \sqrt{3+2 x+5 x^2}} \, dx &=-\frac{3 (40-371 x) \sqrt{3+2 x+5 x^2}}{5588 \left (1+4 x-7 x^2\right )}-\frac{\int \frac{-52136-29544 x}{\left (1+4 x-7 x^2\right ) \sqrt{3+2 x+5 x^2}} \, dx}{44704}\\ &=-\frac{3 (40-371 x) \sqrt{3+2 x+5 x^2}}{5588 \left (1+4 x-7 x^2\right )}-\frac{\left (-40623+53005 \sqrt{11}\right ) \int \frac{1}{\left (4-2 \sqrt{11}-14 x\right ) \sqrt{3+2 x+5 x^2}} \, dx}{61468}+\frac{\left (40623+53005 \sqrt{11}\right ) \int \frac{1}{\left (4+2 \sqrt{11}-14 x\right ) \sqrt{3+2 x+5 x^2}} \, dx}{61468}\\ &=-\frac{3 (40-371 x) \sqrt{3+2 x+5 x^2}}{5588 \left (1+4 x-7 x^2\right )}-\frac{\left (40623-53005 \sqrt{11}\right ) \operatorname{Subst}\left (\int \frac{1}{2352+112 \left (4-2 \sqrt{11}\right )+20 \left (4-2 \sqrt{11}\right )^2-x^2} \, dx,x,\frac{-84-2 \left (4-2 \sqrt{11}\right )-\left (28+10 \left (4-2 \sqrt{11}\right )\right ) x}{\sqrt{3+2 x+5 x^2}}\right )}{30734}-\frac{\left (40623+53005 \sqrt{11}\right ) \operatorname{Subst}\left (\int \frac{1}{2352+112 \left (4+2 \sqrt{11}\right )+20 \left (4+2 \sqrt{11}\right )^2-x^2} \, dx,x,\frac{-84-2 \left (4+2 \sqrt{11}\right )-\left (28+10 \left (4+2 \sqrt{11}\right )\right ) x}{\sqrt{3+2 x+5 x^2}}\right )}{30734}\\ &=-\frac{3 (40-371 x) \sqrt{3+2 x+5 x^2}}{5588 \left (1+4 x-7 x^2\right )}-\frac{\sqrt{\frac{3027900955+14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{23-\sqrt{11}+\left (17-5 \sqrt{11}\right ) x}{\sqrt{2 \left (125-17 \sqrt{11}\right )} \sqrt{3+2 x+5 x^2}}\right )}{11176}+\frac{\sqrt{\frac{3027900955-14035681 \sqrt{11}}{2794}} \tanh ^{-1}\left (\frac{23+\sqrt{11}+\left (17+5 \sqrt{11}\right ) x}{\sqrt{2 \left (125+17 \sqrt{11}\right )} \sqrt{3+2 x+5 x^2}}\right )}{11176}\\ \end{align*}
Mathematica [A] time = 1.02412, size = 313, normalized size = 1.76 \[ \frac{\frac{48972 \sqrt{5 x^2+2 x+3} x}{-7 x^2+4 x+1}+\frac{5280 \sqrt{5 x^2+2 x+3}}{7 x^2-4 x-1}+53005 \sqrt{\frac{22}{125+17 \sqrt{11}}} \log \left (\sqrt{2750+374 \sqrt{11}} \sqrt{5 x^2+2 x+3}+\left (55+17 \sqrt{11}\right ) x+23 \sqrt{11}+11\right )+40623 \sqrt{\frac{2}{125+17 \sqrt{11}}} \log \left (\sqrt{2750+374 \sqrt{11}} \sqrt{5 x^2+2 x+3}+\left (55+17 \sqrt{11}\right ) x+23 \sqrt{11}+11\right )+\sqrt{\frac{2}{125-17 \sqrt{11}}} \left (53005 \sqrt{11}-40623\right ) \tanh ^{-1}\left (\frac{\sqrt{250-34 \sqrt{11}} \sqrt{5 x^2+2 x+3}}{\left (5 \sqrt{11}-17\right ) x+\sqrt{11}-23}\right )-\sqrt{\frac{2}{125+17 \sqrt{11}}} \left (40623+53005 \sqrt{11}\right ) \log \left (-7 x+\sqrt{11}+2\right )}{245872} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.117, size = 510, normalized size = 2.9 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} + 5 \, x + 2}{{\left (7 \, x^{2} - 4 \, x - 1\right )}^{2} \sqrt{5 \, x^{2} + 2 \, x + 3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.36634, size = 1393, normalized size = 7.83 \begin{align*} -\frac{\sqrt{2794}{\left (7 \, x^{2} - 4 \, x - 1\right )} \sqrt{14035681 \, \sqrt{11} + 3027900955} \log \left (-\frac{\sqrt{2794} \sqrt{5 \, x^{2} + 2 \, x + 3} \sqrt{14035681 \, \sqrt{11} + 3027900955}{\left (71796 \, \sqrt{11} + 567523\right )} + 265381033753 \, \sqrt{11}{\left (x + 3\right )} - 796143101259 \, x + 1326905168765}{x}\right ) - \sqrt{2794}{\left (7 \, x^{2} - 4 \, x - 1\right )} \sqrt{14035681 \, \sqrt{11} + 3027900955} \log \left (\frac{\sqrt{2794} \sqrt{5 \, x^{2} + 2 \, x + 3} \sqrt{14035681 \, \sqrt{11} + 3027900955}{\left (71796 \, \sqrt{11} + 567523\right )} - 265381033753 \, \sqrt{11}{\left (x + 3\right )} + 796143101259 \, x - 1326905168765}{x}\right ) + \sqrt{2794}{\left (7 \, x^{2} - 4 \, x - 1\right )} \sqrt{-14035681 \, \sqrt{11} + 3027900955} \log \left (\frac{\sqrt{2794} \sqrt{5 \, x^{2} + 2 \, x + 3}{\left (71796 \, \sqrt{11} - 567523\right )} \sqrt{-14035681 \, \sqrt{11} + 3027900955} + 265381033753 \, \sqrt{11}{\left (x + 3\right )} + 796143101259 \, x - 1326905168765}{x}\right ) - \sqrt{2794}{\left (7 \, x^{2} - 4 \, x - 1\right )} \sqrt{-14035681 \, \sqrt{11} + 3027900955} \log \left (-\frac{\sqrt{2794} \sqrt{5 \, x^{2} + 2 \, x + 3}{\left (71796 \, \sqrt{11} - 567523\right )} \sqrt{-14035681 \, \sqrt{11} + 3027900955} - 265381033753 \, \sqrt{11}{\left (x + 3\right )} - 796143101259 \, x + 1326905168765}{x}\right ) + 33528 \, \sqrt{5 \, x^{2} + 2 \, x + 3}{\left (371 \, x - 40\right )}}{62451488 \,{\left (7 \, x^{2} - 4 \, x - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{2} + 5 x + 2}{\sqrt{5 x^{2} + 2 x + 3} \left (7 x^{2} - 4 x - 1\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]